class CreateVisibleOrderToGroups < ActiveRecord::Migration
  def self.up
    create_table :visible_order_to_groups do |t|
      t.integer :enterprise_id,
        :group_id,
        :order_id
      t.timestamps
    end
    add_column :orders, :visible_scope, :string, :default => 'everyone'
  end

  def self.down
    drop_table :visible_order_to_groups
  end
end
